package com.ws.entity;

import lombok.Data;

/**
 * @author 王硕
 * @version jdk21
 * @className Animal
 * @description
 * @date 2024/11/7 21:48
 */
@Data
public class Animal {
    private String name;
    private int age;

    public Animal(String name, int age) {
        this.name = name;
        this.age = age;
    }

    // 移动行为
    public void move() {
        System.out.println(name + "正在移动");
    }
}
